FROM hyperf/hyperf:8.0-alpine-v3.15-swoole
# 设置时区
ENV TIMEZONE Asia/Shanghai
# 安装composer
COPY --from=composer /usr/bin/composer /usr/bin/composer

RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

CMD [ "php","bin/hyperf.php", "server:watch" ]